#include "GeneralComparable.h"

GeneralComparable::GeneralComparable()
{
	position_ = -1;
	general_ = 0;
}

GeneralComparable::GeneralComparable(int pos, char gen)
{
	position_ = pos;
	general_ = gen;
}

char GeneralComparable::getGeneral() const
{
	return general_;
}

bool GeneralComparable::compare(GeneralComparable b)
{
	if (general_ ^ b.getGeneral())
		return false;
	else
		return true;
}
